<template>
    <div class="wrapper">
        <div class="top">管理系统</div>

        <div class="main">
            <div class="logo">
                <img src="../assets/register.png" alt="" width="100%">
            </div>
            <div class="login">
                <div class="title">欢迎注册</div>
                <el-form ref="userForm" :model="user" size="normal">
                    <el-form-item>
                        <el-input v-model="user.name" placeholder="请输入用户名" prefix-icon="el-icon-user"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-input v-model="user.password" placeholder="请输入密码" prefix-icon="el-icon-lock"
                            show-password></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-input v-model="user.confirmPassword" placeholder="请输入确认密码" prefix-icon="el-icon-lock"
                            show-password></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-button type="primary" @click="">注册</el-button>
                        <el-button type="warning" @click="$router.push('/login')">返回登录</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            user: {},
            pass: {},
            dialogFormVisible: false
        }
    },
}
</script>

<style lang="less" scoped>
.wrapper {
    height: 100vh;
    background: linear-gradient(to bottom right, #4169E1, #B7CEFA);
    overflow: hidden;

    .top {
        height: 60px;
        line-height: 60px;
        font-size: 20px;
        padding-left: 50px;
        color: white;
        background: rgba(0, 0, 0, 0.2);
    }

    .main {
        display: flex;
        width: 50%;
        margin: 150px auto;
        background: white;
        border-radius: 10px;
        overflow: hidden;

        .logo {
            width: 40%;
        }

        .login {
            width: 350px;
            margin-top: 30px;
            margin-left: 50px;

            .title {
                margin: 20px 0;
                text-align: center;
                font-size: 24px;
                font-weight: bold;
                letter-spacing: 6px;
            }
        }

    }
}
</style>